/* =================== */
/* Stats Section Styles */
/* =================== */

.stats-section {
    
  position: relative;
  z-index: 1;
}

.stats-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid transparent;
  border-radius: 25px;
  padding: 40px 25px; /* top-bottom 40px, left-right 25px */
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.stats-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 25px;
  padding: 2px;
  background: linear-gradient(135deg, #D72638, #ff6b6b);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.particles-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#particles-js {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

canvas.particles-js-canvas-el {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ===================== */
/* Stat Box Styles */
/* ===================== */

.stat-box {
  text-align: center;
  padding: 30px 20px;
  border-radius: 15px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.stat-box.in-view {
  opacity: 1;
  transform: translateY(0);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: #D72638;
  transition: transform 0.3s;
}

.stat-box:hover .stat-icon {
  transform: scale(1.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #D72638;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: #555;
}

/* ===================== */
/* Responsive (Mobile) */
/* ===================== */

@media (max-width: 768px) {
    .stats-section {
        padding: 30px;
    }
  .stats-card {
    padding: 40px 25px; /* consistent spacing on mobile */
  }

  .stat-box {
    margin-bottom: 30px;
    padding: 20px 10px;
  }

  .stat-icon {
    font-size: 36px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 1rem;
  }
}
